package com.feonix.support.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 
 * @CopyRight (c)1993-2017
 * @Project m-complat-controller
 * @Comments 错误跳转页
 * @NameSpace com.feonix.support.controller
 * @Author Feonixzw
 * @CreateDate 2017年11月9日
 */
@Controller
@RequestMapping("error")
public class ErrorController {

	/**
	 * 找不到页面
	 * 
	 * @return
	 */
	@RequestMapping("404")
	public ModelAndView fileNotFile() {
		ModelAndView modelAndView = new ModelAndView("support/errorpage/404");
		return modelAndView;
	}

	/**
	 * 内部服务器错误
	 * 
	 * @return
	 */
	@RequestMapping("500")
	public ModelAndView systemError() {
		ModelAndView modelAndView = new ModelAndView("support/errorpage/error");
		return modelAndView;
	}

	/**
	 * 登录超时
	 * 
	 * @return
	 */
	@RequestMapping("logintimeout")
	public ModelAndView loginTimeOut() {
		ModelAndView modelAndView = new ModelAndView("support/errorpage/logintimeout");
		return modelAndView;
	}

	/**
	 * 系统未注册
	 * 
	 * @return
	 */
	@RequestMapping("unregistered")
	public ModelAndView unRegistered() {
		ModelAndView modelAndView = new ModelAndView("support/errorpage/unregistered");
		return modelAndView;
	}

	/**
	 * 无权限访问页面
	 * 
	 * @return
	 */
	@RequestMapping("forbidden")
	public ModelAndView forbidden() {
		ModelAndView modelAndView = new ModelAndView("support/errorpage/forbidden");
		return modelAndView;
	}

}
